<include file="Public:header"/>

<div class="table-tit"><a href="{:U('Sett/index')}">推广方案列表</a>>>新增推广方案</div>
<div class="form-panel">
    <div class="row">
        <div class="col-md-5">
            <form action="{:U('Curd/addons','type=Preftype')}" method="post">
                <div class="form-group">
                    <label>推广方案名称</label>
                    <input type="text" name="pre_name" class="form-control input-sm" required/>
                </div>
                <div class="form-group">
                    <label>推广方案类型</label>
                    <select name="pre_type" class="form-control input-sm">
                        <option value="0">请选择</option>
                        <option value="1">满减</option>
                        <option value="2">直降</option>
                        <option value="3">赠品</option>
                        <option value="4">打折</option>
                    </select>
                </div>
                <div class="form-group">
                    <label>达标金额</label>
                    <input type="text" name="pre_trimoney" class="form-control input-sm" placeholder="填写达到多少金额触发此优惠" required/>
                </div>
                <div class="form-group">
                    <label>优惠</label>
                    <input type="text" name="pre_ratio" class="form-control input-sm" placeholder="优惠可以为金额也可为百分比(百分比换算为小数填写)" required/>
                </div>
                <div class="form-group">
                    <label>限制金额</label>
                    <input type="text" name="pre_maxmoney" class="form-control input-sm" placeholder="最高优惠金额" required/>
                </div>
                <div class="form-group">
                    <label>限制商品</label>
                    <input type="text" name="pre_goods" class="form-control input-sm" placeholder="设置特定商品才能优惠" required/>
                </div>
                <div class="form-group">
                    <label>状态</label>
                    <select name="pre_status" class="form-control input-sm">
                        <option value="0">请选择</option>
                        <option value="1">启用</option>
                        <option value="2">暂停</option>
                    </select>
                </div>
                <button type="submit" class="btn btn-default">更新</button>
            </form>

        </div>
    </div>
</div>

<include file="Public:footer"/>